﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="List.aspx.cs" Inherits="AMV.WEB.List" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link rel="stylesheet" type="text/css" href="<%=ResolveUrl("~/") %>resources/list.css"
        media="screen" />
    <!--[if IE 6]><script>try{document.execCommand("BackgroundImageCache", false, true);}catch(e){}</script><![endif]-->
    <script language="javascript"> 
<!--
        window.onerror = function () { return true; } 
// --> 
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <amv:Header ID="Header" runat="server"></amv:Header>
    <div class="container_25 clearfix" style="margin-top: 20px;">
        <div class="grid_7">
            <amv:MusicFilter runat="server"></amv:MusicFilter>
        </div>
        <div class="grid_18">
            <div class="mod_toolbar">
                <!-- tabs start -->
                <div class="mod_tab_sort">
                    <ul class="_group" gname="mi_sort" gtype="0">
                        <li class="current"><a href="javascript:void(0);">最新</a> </li>
                        <li><a href="javascript:void(0);">最热</a> </li>
                    </ul>
                </div>
            </div>
            <asp:ListView ID="ListView1" runat="server" DataKeyNames="MusicID" DataSourceID="srcMusics">
                <LayoutTemplate>
                    <div class="mod_video_list poster">
                        <div class="mod_cont" id="content">
                            <ul class="mod_list_pic_160">
                                <li runat="server" id="itemPlaceholder"></li>
                            </ul>
                        </div>
                    </div>
                    <asp:DataPager runat="server" ID="DataPager" PageSize="20">
                        <Fields>
                            <asp:NumericPagerField ButtonCount="5" PreviousPageText="<--" NextPageText="-->" />
                        </Fields>
                    </asp:DataPager>
                </LayoutTemplate>
                <EmptyDataTemplate>
                    未返回数据。
                </EmptyDataTemplate>
                <ItemTemplate>
                    <li><a href="<%=ResolveUrl("~/Play.aspx")%>?MusicID=<%# Eval("MusicID") %>" class="mod_poster_160"
                        target="_blank">
                        <img src="<%# Eval("ThumbPicture") %>" alt="<%# Eval("MusicName") %>" onerror="this.src='<%=ResolveUrl("~/") %>resources/nophoto.jpg'">
                        <div class="mod_sign">
                            <span class="mod_HD">1080p</span> <span class="mod_version">
                                <%# Eval("Length") %></span>
                        </div>
                        <span class="mod_mask"></span></a>
                        <h6 class="scores">
                            <a href="<%=ResolveUrl("~/Play.aspx")%>?MusicID=<%# Eval("MusicID") %>" target="_blank">
                                <%# Eval("MusicName") %></a> <strong class="c_txt3">5.0</strong>
                        </h6>
                        <p class="singer">
                            <a href="javascript:void(0);" target="_blank">
                                <%# Eval("Singer") %></a>
                        </p>
                        <p>
                            播放：<span class="_total_view"><%# Eval("HitCount") %></span></p>
                    </li>
                </ItemTemplate>
            </asp:ListView>
            <asp:SqlDataSource ID="srcMusics" runat="server" ConnectionString="<%$ ConnectionStrings:db %>"
                SelectCommand="SELECT * FROM [Music]"></asp:SqlDataSource>
        </div>
    </div>
    <amv:Footer ID="Footer1" runat="server"></amv:Footer>
    </form>
</body>
</html>
